<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            background-color: #333;
            border: 1px solid #555;
            overflow: auto;
        }
        li {
            float: left;
            
        }
        /*
        
        */
        li a {
            display: block;
            color: white;
            text-align: center;
            padding: 14px 16px;
            text-decoration: none;
        }
        li a:hover {
            background-color: #111;
        }
        .active {
            background-color: red;
        }
        ul li {
            border-right: 1px solid lightblue;
        }
        li:last-child {
            border-right: none;
        }

    </style>
</head>

<body>
  <ul>
    <li><a href="#home" class="active">Home</a></li>
    <li><a href="#news" >News</a></li>
    <li><a href="#contact" >Contact</a></li>
    <li><a href="#about">About</a></li>

  </ul>
<p>你好</p>    
  
<p>你好</p>    


</body>
</html>